<?php
 namespace App\Http\Controllers\Admin; use TechSoft\Laravel\Admin\Cms\BasicCms; use TechSoft\Laravel\Admin\Cms\Field\FieldSelect; use TechSoft\Laravel\Admin\Cms\Field\FieldText; use TechSoft\Laravel\Admin\Support\AdminCheckController; class NavController extends AdminCheckController { private $cmsConfigBasic = [ 'model' => 'nav', 'pageTitle' => '导航设置', 'group' => 'data', 'canAdd' => true, 'canEdit' => true, 'canDelete' => true, 'fields' => [ 'type' => ['type' => FieldSelect::class, 'title' => '类型', 'search' => true, 'list' => true, 'edit' => true, 'add' => true, 'options' => [ 'head' => '顶部导航', 'foot' => '底部导航', ]], 'sort' => ['type' => FieldText::class, 'title' => '位置', 'list' => true, 'edit' => true, 'add' => true,], 'title' => ['type' => FieldText::class, 'title' => '标题', 'list' => true, 'edit' => true, 'add' => true,], 'url' => ['type' => FieldText::class, 'title' => '链接', 'list' => true, 'edit' => true, 'add' => true, 'desc' => '
<table class="admin-view-table-line">
    <tr><td width="100">首页</td><td width="100"><code>/</code></td><td><a onclick="$(\'[name=url]\').val(\'/\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">产品列表</td><td width="100"><code>/product</code></td><td><a onclick="$(\'[name=url]\').val(\'/product\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">案例列表</td><td width="100"><code>/case</code></td><td><a onclick="$(\'[name=url]\').val(\'/case\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">新闻列表</td><td width="100"><code>/news</code></td><td><a onclick="$(\'[name=url]\').val(\'/news\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">联系我们</td><td width="100"><code>/contact</code></td><td><a onclick="$(\'[name=url]\').val(\'/contact\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">关于我们</td><td width="100"><code>/about</code></td><td><a onclick="$(\'[name=url]\').val(\'/about\')" href="javascript:;">[使用]</a></td></tr>
    <tr><td width="100">招聘</td><td width="100"><code>/job</code></td><td><a onclick="$(\'[name=url]\').val(\'/job\')" href="javascript:;">[使用]</a></td></tr>
</table>
            '], ] ]; public function dataList(BasicCms $basicCms) { return $basicCms->executeList($this, $this->cmsConfigBasic);; } public function dataDelete(BasicCms $basicCms) { return $basicCms->executeDelete($this, $this->cmsConfigBasic); } public function dataEdit(BasicCms $basicCms) { return $basicCms->executeEdit($this, $this->cmsConfigBasic); } public function dataAdd(BasicCms $basicCms) { return $basicCms->executeAdd($this, $this->cmsConfigBasic); } } 